package com.teach_sys.service;

import com.teach_sys.bean.SC;
import com.teach_sys.dao.SCDao;

import java.util.List;

public class SCService {
    private final SCDao scDao = new SCDao();

    public void addSC(SC sc) {
        scDao.addSC(sc);
    }

    public void deleteSCBySnoAndCno(String sno, String cno) {
        scDao.deleteSCBySnoAndCno(sno, cno);
    }

    public void updateSC(SC sc) {
        scDao.updateSC(sc);
    }

    public List<SC> querySCBySno(String sno) {
        return scDao.querySCBySno(sno);
    }

    public List<SC> querySCByCno(String cno) {
        return scDao.querySCByCno(cno);
    }

    public List<SC> queryAllSC() {
        return scDao.queryAllSC();
    }
}
